﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Trade.cs" company="">
//   
// </copyright>
// <summary>
//   The trade.
// </summary>
// --------------------------------------------------------------------------------------------------------------------


using System;

namespace Systemathics.FrameWork
{
    [Serializable]
    public sealed class Trade : EventArgs, ICloneable
    {
        public Guid Id { get; private set; }
        public Decimal Price { get; set; }
        public int Size { get; set; }
        public DateTime Time { get; set; }
        public TickInfo TickInfo { get; set; }

        public Trade(Guid id, DateTime dt, Decimal px, int sz)
        {
            Id = id;
            Time = dt;
            Price = px;
            Size = sz;
        }
        public Trade(Guid guid)
        {
            Id = guid;
        }

        #region ICloneable Members

        public object Clone()
        {
            return MemberwiseClone();
        }

        #endregion 
    }
}